package com.canxi.earn.domain.bo;

import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.canxi.common.core.domain.BaseEntity;


/**
 * 轮播图管理业务对象 cx_banner
 *
 * @author ruoyi
 * @date 2024-09-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CxBannerBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotBlank(message = "主键ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 轮播图地址
     */
    @NotBlank(message = "轮播图地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ossIds;

    /**
     * 图标地址
     */
    private String iconUrl;

    /**
     * 跳转类型(0=内链,1=外链)
     */
    @NotBlank(message = "跳转类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String toType;

    /**
     * 跳转地址
     */
    @NotBlank(message = "跳转地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String toUrl;

    /**
     * 展示位置(0=首页,1=积分商城)
     */
    @NotBlank(message = "展示位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String showType;

    /**
     * 轮播图状态(Y=正常,N=禁用)
     */
    @NotBlank(message = "轮播图状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bannerStatus;


}
